function showSortRoom(){
	var url = "/roomService";
	var data = { func : "load4Sort"
			}
	simpleservice(url,data,show);
}

function show(data){
	var objArray = new Array();
	objArray = JSON.parse(data);
	text = "";
	
	for(var i = 0 ;i< objArray[0].length;i++){
		text += "<tr><th align=\"left\"> "+objArray[0][i]['shortName']+
		"</th><th align=\"left\">Sort Order</th></tr>";
		for(var j = 0;j<objArray[1][i].length;j++){
			text+= "<tr><td style=\"padding-left:20px;\">"+objArray[1][i][j]['roomName']+"</td><td>" +
					"<input onblur=\"editSortOrder("+objArray[1][i][j]['id']+",this.value)\"name=\"txtSortOrder\" style=\"width:50px;\" type=\"text\" value=\""+objArray[1][i][j]['sortOrder']+
					"\" maxlength=\"5\">";
		}
	}
	$("#showList").append(text);
}

function editSortOrder(id,sortOrder){
	var url = "/roomService";
	var data = { func : "editSortOrder",
		id:id,
		sortOrder:sortOrder
			}
	simpleservice(url,data,success);
}

function success(data){
	//N
}